package com.yonyou.gmmc.service.shopping.model;

import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.*;

import org.hibernate.validator.constraints.NotBlank;
import org.springframework.format.annotation.DateTimeFormat;

import com.fasterxml.jackson.annotation.JsonFormat;

@Table(name = "TM_TP_SHOPPING_CAR")
public class TmTpShoppingCar {
    @Id
    @Column(name = "ID")
    @SequenceGenerator(name="",sequenceName="SEQ_TM_TP_SHOPPING_CAR")
    private Long id;
    
    @NotBlank(message = "商品编码不能为空")
    @Column(name = "SKU_ID")
    private String skuId;

    @Column(name = "NUM")
    private Long num;
    
    @Column(name = "STATUS")
    private String status;

    @Column(name = "PRICE")
    private String price;
    
    /*
     * 2017-06-15
     */
    private String JdPrice;

    @Column(name = "USER_ID")
    private BigDecimal userId;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Column(name = "CREATE_DATE")
    private Date createDate;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Column(name = "UPDATE_DATE")
    private Date updateDate;

    private String imagepath;
    
    private String name;
    
    /*
     * 上下架状态
     */
    private String wxState;
    private String state;
    private Integer flag;
    private String msg;
    /*
     * 状态名字
     */
    private String statusName;
    
    /*
     * 订单号
     */
    private String thirdOrder;
    
    /*
     * 商品规格
     */
    private String productGroup;
    
    //是否可售状态
    private String saleState;
    
    /**
     * @return the imagepath
     */
    public String getImagepath() {
        return imagepath;
    }

    
    /**
     * @param imagepath the imagepath to set
     */
    public void setImagepath(String imagepath) {
        this.imagepath = imagepath;
    }

    
    /**
     * @return the name
     */
    public String getName() {
        return name;
    }

    
    /**
     * @param name the name to set
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * @return ID
     */
    public Long getId() {
        return id;
    }

    /**
     * @param id
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * @return SKU_ID
     */
    public String getSkuId() {
        return skuId;
    }

    /**
     * @param skuId
     */
    public void setSkuId(String skuId) {
        this.skuId = skuId;
    }

    /**
     * @return NUM
     */
    public Long getNum() {
        return num;
    }

    /**
     * @param num
     */
    public void setNum(Long num) {
        this.num = num;
    }

    /**
     * @return PRICE
     */
    public String getPrice() {
        return price;
    }

    /**
     * @param price
     */
    public void setPrice(String price) {
        this.price = price;
    }

    /**
     * @return USER_ID
     */
    public BigDecimal getUserId() {
        return userId;
    }

    /**
     * @param userId
     */
    public void setUserId(BigDecimal userId) {
        this.userId = userId;
    }

    /**
     * @return CREATE_DATE
     */
    public Date getCreateDate() {
        return createDate;
    }

    /**
     * @param createDate
     */
    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    /**
     * @return UPDATE_DATE
     */
    public Date getUpdateDate() {
        return updateDate;
    }

    /**
     * @param updateDate
     */
    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }


    
    /**
     * @return the thirdOrder
     */
    public String getThirdOrder() {
        return thirdOrder;
    }


    
    /**
     * @param thirdOrder the thirdOrder to set
     */
    public void setThirdOrder(String thirdOrder) {
        this.thirdOrder = thirdOrder;
    }


    
    /**
     * @return the status
     */
    public String getStatus() {
        return status;
    }


    
    /**
     * @param status the status to set
     */
    public void setStatus(String status) {
        this.status = status;
    }


    /**
     * @param the statusName
     */
	public String getStatusName() {
		return statusName;
	}


	/**
     * @param statusName the statusName to set
     */
	public void setStatusName(String statusName) {
		this.statusName = statusName;
	}


	public String getProductGroup() {
		return productGroup;
	}


	public void setProductGroup(String productGroup) {
		this.productGroup = productGroup;
	}


	public String getWxState() {
		return wxState;
	}


	public void setWxState(String wxState) {
		this.wxState = wxState;
	}


	public String getState() {
		return state;
	}


	public void setState(String state) {
		this.state = state;
	}


	public Integer getFlag() {
		return flag;
	}


	public void setFlag(Integer flag) {
		this.flag = flag;
	}


	public String getMsg() {
		return msg;
	}


	public void setMsg(String msg) {
		this.msg = msg;
	}


	public String getSaleState() {
		return saleState;
	}


	public void setSaleState(String saleState) {
		this.saleState = saleState;
	}


    
    /**
     * @return the jdPrice
     */
    public String getJdPrice() {
        return JdPrice;
    }


    
    /**
     * @param jdPrice the jdPrice to set
     */
    public void setJdPrice(String jdPrice) {
        JdPrice = jdPrice;
    }

    
}